<ul class="sidebar-nav navbar-collapse navbar-default sidebar">
    <li class="sidebar-brand">
        <a href="#">{{$project['title']}}</a>
    </li>
    <li>
        <a href="{{ route('project/project', ['project' => $project['id']]) }}" class="@if(!empty($article) && $article == 'intro') active @endif">简介</a>
    </li>
    <li>
        <a href="{{ route('project/overview', ['project' => $project['id']]) }}" class="@if(!empty($article) && $article == 'overview') active @endif">API概览</a>
    </li>
    <li>
        <a href="{{ route('project/history', ['project' => $project['id']]) }}" class="@if(!empty($article) && $article == 'history') active @endif">更新历史</a>
    </li>
    <li>
        <a href="#">使用示例</a>
    </li>
    <li>
        <a href="{{ route('project/common', ['project' => $project['id']]) }}" class="@if(!empty($article) && $article == 'common') active @endif">调用方式</a>
    </li>
    @foreach($project['categorys'] as $category)
    <li class="category">
        <a href="javascript:void(0)">{{ $category['title'] }}</a>
        @if(!empty($category['apis']) && $category['apis'] !== '[]')
        <ul class="sidebar">
            @foreach($category['apis'] as $api)
            <li>
                <a href="{{ route('project/api', ['project' => $project['id'], 'category' => $category['id'], 'api' => $api['id']]) }}" class="@if(!empty($apiid) && $apiid == $api['id']) active @endif">{{ $api['title'] }}</a>
            </li>
            @endforeach
        </ul>
        @endif
    </li>
    @endforeach
</ul>